package com.dt.dubai.mber.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 用户商品订单表
 */

@Data
@Table(name = "dt_mber_customer_order")
@EqualsAndHashCode(callSuper = false)
public class MberCustomerOrderEntity extends BaseEntity {

    //顾客登录记录ID
    @NotNull(message = "customerRecordId参数不能为空")
    Long customerRecordId;

    //顾客地址记录ID
    @NotNull(message = "customerAddrRecordId参数不能为空")
    Long customerAddrRecordId;

    //订单号
    @NotNull(message = "orderNumber参数不能为空")
    @Length(min = 0, max = 19, message = "orderNumber参数最大长度不19")
    String orderNumber;

    //用户账号
    @Length(min = 0, max = 11, message = "customerUsername参数最大长度不19")
    String customerUsername;

    //支付方式 1-支付宝,2-微信,3-其它
    Short payType;

    //发货状态 1-未发货,2-已发货,3-派送中,4-已签收,5-已完成
    Short deliverGoods;

    //类型 1-电商,2-检测,3-计量
    Short commodityType;

    //订单状态 1-未支付,2-已支付,3-已取消
    Short orderStatus;

    //物流公司 1-中通,2-顺丰,3-圆通,4-EMS
    Short logisticsFirm;

    //售后状态 1-无,2-申请退货,3-已退货,4-申请换货,5-已换货,6-赔付,7-同意,8-拒绝
    Short afterSalesStatus;

    //物流单号
    Integer logisticsNumber;

    //订单金额
    Integer orderAmount;

    //实付金额
    Integer payOrderAmount;

    //优惠金额
    Integer discountOrderAmount;

    //抵扣金额
    Integer offsetOrderAmount;

    //订单备注
    @Length(min = 0, max = 500, message = "orderRemark参数最大长度不500")
    String orderRemark;


}
